home *** CD-ROM | disk | FTP | other *** search
- echo off
- If !%1==! Input What is the file name, without its extension?
- If !%1==! Set filenam=%ANS%
- If !%2==! Input What is the file extension?
- If !%2==! Set fileext=%ANS%
- If !%1==! goto doit1
- If !%filenam%==! Goto end
- goto doit2
- :doit1
- if exist %filenam%.COM echo A file named %filenam%.COM already exists in this directory.
- if exist %filenam%.COM goto end
- Copy gtxt.000+%filenam%.%fileext%+gtxt.dat %filenam%.com >nul
- Echo The file %filenam%.COM has been created.
- Goto end
- :doit2
- if exist %1.COM echo A file named %1.COM already exists in this directory.
- if exist %1.COM goto end
- Copy gtxt.000+%1.%2+gtxt.dat %1.com >nul
- Echo The file %1.COM has been created.
- :end
-